(0) Obligation:

Runtime Complexity TRS:
The TRS R consists of the following rules:

a__2nd(cons1(X, cons(Y, Z))) → mark(Y)
a__2nd(cons(X, X1)) → a__2nd(cons1(mark(X), mark(X1)))
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
mark(cons1(X1, X2)) → cons1(mark(X1), mark(X2))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

Rewrite Strategy: FULL

(1) DecreasingLoopProof (EQUIVALENT transformation)

The following loop(s) give(s) rise to the lower bound Ω(2n):
The rewrite sequence
mark(2nd(from(X7523_0))) →+ a__2nd(cons(mark(mark(X7523_0)), from(s(mark(X7523_0)))))
gives rise to a decreasing loop by considering the right hand sides subterm at position [0,0,0].
The pumping substitution is [X7523_0 / 2nd(from(X7523_0))].
The result substitution is [ ].

The rewrite sequence
mark(2nd(from(X7523_0))) →+ a__2nd(cons(mark(mark(X7523_0)), from(s(mark(X7523_0)))))
gives rise to a decreasing loop by considering the right hand sides subterm at position [0,1,0,0].
The pumping substitution is [X7523_0 / 2nd(from(X7523_0))].
The result substitution is [ ].

(2) BOUNDS(2^n, INF)

(3) RenamingProof (EQUIVALENT transformation)

Renamed function symbols to avoid clashes with predefined symbol.

(4) Obligation:

Runtime Complexity Relative TRS:
The TRS R consists of the following rules:

a__2nd(cons1(X, cons(Y, Z))) → mark(Y)
a__2nd(cons(X, X1)) → a__2nd(cons1(mark(X), mark(X1)))
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
mark(cons1(X1, X2)) → cons1(mark(X1), mark(X2))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

S is empty.
Rewrite Strategy: FULL

(5) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)

Infered types.

(6) Obligation:

TRS:
Rules:
a__2nd(cons1(X, cons(Y, Z))) → mark(Y)
a__2nd(cons(X, X1)) → a__2nd(cons1(mark(X), mark(X1)))
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
mark(cons1(X1, X2)) → cons1(mark(X1), mark(X2))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

Types:
a__2nd :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
cons1 :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
cons :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
mark :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
a__from :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
from :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
s :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
2nd :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
hole_cons:cons1:s:from:2nd1_0 :: cons:cons1:s:from:2nd
gen_cons:cons1:s:from:2nd2_0 :: Nat → cons:cons1:s:from:2nd

(7) OrderProof (LOWER BOUND(ID) transformation)

Heuristically decided to analyse the following defined symbols:
a__2nd, mark, a__from

They will be analysed ascendingly in the following order:
a__2nd = mark
a__2nd = a__from
mark = a__from

(8) Obligation:

TRS:
Rules:
a__2nd(cons1(X, cons(Y, Z))) → mark(Y)
a__2nd(cons(X, X1)) → a__2nd(cons1(mark(X), mark(X1)))
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
mark(cons1(X1, X2)) → cons1(mark(X1), mark(X2))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

Types:
a__2nd :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
cons1 :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
cons :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
mark :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
a__from :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
from :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
s :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
2nd :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
hole_cons:cons1:s:from:2nd1_0 :: cons:cons1:s:from:2nd
gen_cons:cons1:s:from:2nd2_0 :: Nat → cons:cons1:s:from:2nd

Generator Equations:
gen_cons:cons1:s:from:2nd2_0(0) ⇔ hole_cons:cons1:s:from:2nd1_0
gen_cons:cons1:s:from:2nd2_0(+(x, 1)) ⇔ cons1(hole_cons:cons1:s:from:2nd1_0, gen_cons:cons1:s:from:2nd2_0(x))

The following defined symbols remain to be analysed:
mark, a__2nd, a__from

They will be analysed ascendingly in the following order:
a__2nd = mark
a__2nd = a__from
mark = a__from

(9) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
mark(gen_cons:cons1:s:from:2nd2_0(+(1, n4_0))) → *3_0, rt ∈ Ω(n40)

Induction Base:
mark(gen_cons:cons1:s:from:2nd2_0(+(1, 0)))

Induction Step:
mark(gen_cons:cons1:s:from:2nd2_0(+(1, +(n4_0, 1)))) →RΩ(1)
cons1(mark(hole_cons:cons1:s:from:2nd1_0), mark(gen_cons:cons1:s:from:2nd2_0(+(1, n4_0)))) →IH
cons1(mark(hole_cons:cons1:s:from:2nd1_0), *3_0)

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(10) Complex Obligation (BEST)

(11) Obligation:

TRS:
Rules:
a__2nd(cons1(X, cons(Y, Z))) → mark(Y)
a__2nd(cons(X, X1)) → a__2nd(cons1(mark(X), mark(X1)))
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
mark(cons1(X1, X2)) → cons1(mark(X1), mark(X2))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

Types:
a__2nd :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
cons1 :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
cons :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
mark :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
a__from :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
from :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
s :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
2nd :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
hole_cons:cons1:s:from:2nd1_0 :: cons:cons1:s:from:2nd
gen_cons:cons1:s:from:2nd2_0 :: Nat → cons:cons1:s:from:2nd

Lemmas:
mark(gen_cons:cons1:s:from:2nd2_0(+(1, n4_0))) → *3_0, rt ∈ Ω(n40)

Generator Equations:
gen_cons:cons1:s:from:2nd2_0(0) ⇔ hole_cons:cons1:s:from:2nd1_0
gen_cons:cons1:s:from:2nd2_0(+(x, 1)) ⇔ cons1(hole_cons:cons1:s:from:2nd1_0, gen_cons:cons1:s:from:2nd2_0(x))

The following defined symbols remain to be analysed:
a__2nd, a__from

They will be analysed ascendingly in the following order:
a__2nd = mark
a__2nd = a__from
mark = a__from

(12) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

Could not prove a rewrite lemma for the defined symbol a__2nd.

(13) Obligation:

TRS:
Rules:
a__2nd(cons1(X, cons(Y, Z))) → mark(Y)
a__2nd(cons(X, X1)) → a__2nd(cons1(mark(X), mark(X1)))
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
mark(cons1(X1, X2)) → cons1(mark(X1), mark(X2))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

Types:
a__2nd :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
cons1 :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
cons :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
mark :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
a__from :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
from :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
s :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
2nd :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
hole_cons:cons1:s:from:2nd1_0 :: cons:cons1:s:from:2nd
gen_cons:cons1:s:from:2nd2_0 :: Nat → cons:cons1:s:from:2nd

Lemmas:
mark(gen_cons:cons1:s:from:2nd2_0(+(1, n4_0))) → *3_0, rt ∈ Ω(n40)

Generator Equations:
gen_cons:cons1:s:from:2nd2_0(0) ⇔ hole_cons:cons1:s:from:2nd1_0
gen_cons:cons1:s:from:2nd2_0(+(x, 1)) ⇔ cons1(hole_cons:cons1:s:from:2nd1_0, gen_cons:cons1:s:from:2nd2_0(x))

The following defined symbols remain to be analysed:
a__from

They will be analysed ascendingly in the following order:
a__2nd = mark
a__2nd = a__from
mark = a__from

(14) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

Could not prove a rewrite lemma for the defined symbol a__from.

(15) Obligation:

TRS:
Rules:
a__2nd(cons1(X, cons(Y, Z))) → mark(Y)
a__2nd(cons(X, X1)) → a__2nd(cons1(mark(X), mark(X1)))
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
mark(cons1(X1, X2)) → cons1(mark(X1), mark(X2))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

Types:
a__2nd :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
cons1 :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
cons :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
mark :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
a__from :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
from :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
s :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
2nd :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
hole_cons:cons1:s:from:2nd1_0 :: cons:cons1:s:from:2nd
gen_cons:cons1:s:from:2nd2_0 :: Nat → cons:cons1:s:from:2nd

Lemmas:
mark(gen_cons:cons1:s:from:2nd2_0(+(1, n4_0))) → *3_0, rt ∈ Ω(n40)

Generator Equations:
gen_cons:cons1:s:from:2nd2_0(0) ⇔ hole_cons:cons1:s:from:2nd1_0
gen_cons:cons1:s:from:2nd2_0(+(x, 1)) ⇔ cons1(hole_cons:cons1:s:from:2nd1_0, gen_cons:cons1:s:from:2nd2_0(x))

No more defined symbols left to analyse.

(16) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
mark(gen_cons:cons1:s:from:2nd2_0(+(1, n4_0))) → *3_0, rt ∈ Ω(n40)

(17) BOUNDS(n^1, INF)

(18) Obligation:

TRS:
Rules:
a__2nd(cons1(X, cons(Y, Z))) → mark(Y)
a__2nd(cons(X, X1)) → a__2nd(cons1(mark(X), mark(X1)))
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
mark(cons1(X1, X2)) → cons1(mark(X1), mark(X2))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

Types:
a__2nd :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
cons1 :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
cons :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
mark :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
a__from :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
from :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
s :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
2nd :: cons:cons1:s:from:2nd → cons:cons1:s:from:2nd
hole_cons:cons1:s:from:2nd1_0 :: cons:cons1:s:from:2nd
gen_cons:cons1:s:from:2nd2_0 :: Nat → cons:cons1:s:from:2nd

Lemmas:
mark(gen_cons:cons1:s:from:2nd2_0(+(1, n4_0))) → *3_0, rt ∈ Ω(n40)

Generator Equations:
gen_cons:cons1:s:from:2nd2_0(0) ⇔ hole_cons:cons1:s:from:2nd1_0
gen_cons:cons1:s:from:2nd2_0(+(x, 1)) ⇔ cons1(hole_cons:cons1:s:from:2nd1_0, gen_cons:cons1:s:from:2nd2_0(x))

No more defined symbols left to analyse.

(19) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
mark(gen_cons:cons1:s:from:2nd2_0(+(1, n4_0))) → *3_0, rt ∈ Ω(n40)

(20) BOUNDS(n^1, INF)